<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>right</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>

<script>
function delNews(id){
	if(confirm("您确定要删除此新闻吗？")){
		$.ajax({
			async:false,
			type:'POST',
			url:'__URL__/delNews',
			data:'id='+id,
			success:function(msg){
				if ( msg == "success"){
					$(".delNews"+id).hide();
				}else{
					alert("删除失败！！！");
				}
			}
		});
	}
}
function editNews(id) {
	//window.navigate( "__URL__/editNews?id="+id );
	window.location.href = "__URL__/editNews?id="+id
}
</script>
</head>
<body>

<div id="container">
  <div id="main"> 
    <div id="content"> 
      <div class="weizhi"><span>当前位置：<{$position}></span></div>
      <br />

		        <table cellspacing="0" cellpadding="0" border="0"><!-- Table -->
			    <thead>
			        <tr>
			       	 	<th>NO</th>
					    <th>新闻标题</th>
					    <th>新闻主类别</th>
						<th>新闻副类别</th>
					    <th>新闻发布时间</th>
					    <th>操作</th>
				    </tr>
		        </thead>
				    
			    <tbody>
			        <volist name="news" id="news">
				     <tr class="delNews<{$news.id}>">
				     	<td ><{$i}></td>
					    <td ><{$news.title}></td>
					    <td ><{$news.type_name}></td>
						<td><{$news.new_s_name}></td>
					    <td ><{$news.times}></td>
					    <td ><a href="javascript:;"><img onclick="delNews(<{$news.id}>)" alt="Delete" src="__PUBLIC__/Admin/assets/action_delete.png" title="删除" /></a> &nbsp;&nbsp;<a href="javascript:;"><img alt="Edit" title="修改" src="__PUBLIC__/Admin/assets/folder.png" onclick="editNews(<{$news.id}>)" /></a></td>
				    </tr>
				   
			        </volist>
		        </tbody>
		        </table>
		        <{$page}>
		        
		        
		        </div>
		        </div>
</div>
</body>
</html>





